﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Schedule.ascx.cs" Inherits="Schedule" %>
<table>
<tr><td>
时间安排<br />
<asp:GridView ID="GridView_Schedule" runat="server" 
        DataSourceID="ObjectDataSource_Schedule" AutoGenerateColumns="False" 
        onrowupdating="GridView_Schedule_RowUpdating" 
        onrowdatabound="GridView_Schedule_RowDataBound" >
    <FooterStyle CssClass="FooterStyle" />
    <RowStyle CssClass="RowStyle" />
    <EmptyDataRowStyle CssClass="EmptyRowStyle" />
    <PagerStyle CssClass="PagerStyle" />
    <SelectedRowStyle CssClass="SelectedRowStyle" />
    <HeaderStyle CssClass="HeaderStyle" />
    <EditRowStyle CssClass="EditRowStyle" />
    <AlternatingRowStyle CssClass="AltRowStyle" />
    <Columns>
        <asp:BoundField DataField="Id" HeaderText="序号" ReadOnly="True"/>
        <asp:BoundField DataField="Description" HeaderText="阶段" ReadOnly="True"/>
        <asp:BoundField DataField="DeadLine" HeaderText="每月截止" />
        <asp:CommandField ShowEditButton="True" />
    </Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource_Schedule" runat="server" SelectMethod="GetSchedules"
    TypeName="ScheduleDB" DataObjectTypeName="ScheduleDetail" UpdateMethod="UpdateSchedule">
    </asp:ObjectDataSource>
    </td></tr>
</table>